<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="SctstbparticipCreateDlg" widgetVar="SctstbparticipCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateSctstbparticipTitle}">

            <h:form id="SctstbparticipCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{sctstbparticipController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateSctstbparticipLabel_sctstbtipoparid}" for="sctstbtipoparid" />
                        <p:selectOneMenu id="sctstbtipoparid" value="#{sctstbparticipController.selected.sctstbtipoparid}" required="true" requiredMessage="#{myBundle.EditSctstbparticipRequiredMessage_sctstbtipoparid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sctstbtipoparController.items}"
                                           var="sctstbtipoparidItem"
                                           itemValue="#{sctstbtipoparidItem}"
                                           itemLabel="#{sctstbtipoparidItem.sctstbtipoparid.toString()}"
                                           />
                            <f:converter binding="#{sctstbtipoparConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSctstbparticipLabel_sctstbtesisid}" for="sctstbtesisid" />
                        <p:selectOneMenu id="sctstbtesisid" value="#{sctstbparticipController.selected.sctstbtesisid}" required="true" requiredMessage="#{myBundle.EditSctstbparticipRequiredMessage_sctstbtesisid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sctstbtesisController.items}"
                                           var="sctstbtesisidItem"
                                           itemValue="#{sctstbtesisidItem}"
                                           itemLabel="#{sctstbtesisidItem.sctstbtesisid.toString()}"
                                           />
                            <f:converter binding="#{sctstbtesisConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSctstbparticipLabel_scthtbdatosgenid}" for="scthtbdatosgenid" />
                        <p:selectOneMenu id="scthtbdatosgenid" value="#{sctstbparticipController.selected.scthtbdatosgenid}" required="true" requiredMessage="#{myBundle.EditSctstbparticipRequiredMessage_scthtbdatosgenid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbdatosgenController.items}"
                                           var="scthtbdatosgenidItem"
                                           itemValue="#{scthtbdatosgenidItem}"
                                           itemLabel="#{scthtbdatosgenidItem.scthtbdatosgenid.toString()}"
                                           />
                            <f:converter binding="#{scthtbdatosgenConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{sctstbparticipController.saveNew}" value="#{myBundle.Save}" update="display,:SctstbparticipListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,SctstbparticipCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="SctstbparticipCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
